package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.TbBookCategory;

/**
 * 图书类别Mapper接口
 * 
 * @author ruoyi
 * @date 2022-06-16
 */
public interface TbBookCategoryMapper 
{
    /**
     * 查询图书类别
     * 
     * @param categoryId 图书类别主键
     * @return 图书类别
     */
    public TbBookCategory selectTbBookCategoryByCategoryId(Long categoryId);

    /**
     * 查询图书类别列表
     * 
     * @param tbBookCategory 图书类别
     * @return 图书类别集合
     */
    public List<TbBookCategory> selectTbBookCategoryList(TbBookCategory tbBookCategory);

    /**
     * 新增图书类别
     * 
     * @param tbBookCategory 图书类别
     * @return 结果
     */
    public int insertTbBookCategory(TbBookCategory tbBookCategory);

    /**
     * 修改图书类别
     * 
     * @param tbBookCategory 图书类别
     * @return 结果
     */
    public int updateTbBookCategory(TbBookCategory tbBookCategory);

    /**
     * 删除图书类别
     * 
     * @param categoryId 图书类别主键
     * @return 结果
     */
    public int deleteTbBookCategoryByCategoryId(Long categoryId);

    /**
     * 批量删除图书类别
     * 
     * @param categoryIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTbBookCategoryByCategoryIds(Long[] categoryIds);
}
